home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- _root.tent = score;
- if(_root.ball1.inside == true)
- {
- score += 1;
- }
- if(_root.fallNow == true && counter++ > 50)
- {
- if(_xscale - dy > fall)
- {
- dy += 0.05;
- _xscale = _yscale = _xscale - dy;
- }
- else
- {
- _xscale = fall;
- dy *= -0.4;
- }
- dy *= 0.98;
- }
- if(_root.riseNow == true)
- {
- _root.fallNow = false;
- if(dy2 + _xscale <= 100)
- {
- _xscale = _yscale = _xscale + dy2;
- dy2 += 0.005;
- _root.ball1._xscale = _root.ball1._yscale = _xscale;
- }
- else
- {
- with(_root.ball1)
- {
- _xscale = _yscale = 100;
- inside = true;
- fallDist = 100;
- fallRate = 0;
- }
- counter = 0;
- score = 0;
- _root.riseNow = false;
- _root.maxim = 6;
- _xscale = _yscale = 100;
- dy2 = 0;
- }
- }
- this.filters = [glow];
- this.blur = 0.8 * (_xscale - fall);
- this.glow.blurX = this.glow.blurY = this.blur;
- this.glow.strength = 1;
- }
-